def calculate_bonus(p):
    if p <= 100000:
        bonus = p * 0.1
    elif p <= 200000:
        bonus = 100000 * 0.1 + (p - 100000) * 0.075
    elif p <= 400000:
        bonus = 100000 * 0.1 + 100000 * 0.075 + (p - 200000) * 0.05
    elif p <= 600000:
        bonus = 100000 * 0.1 + 100000 * 0.075 + 200000 * 0.05 + (p - 400000) * 0.03
    elif p <= 1000000:
        bonus = 100000 * 0.1 + 100000 * 0.075 + 200000 * 0.05 + 200000 * 0.03 + (p - 600000) * 0.015
    else:
        bonus = 100000 * 0.1 + 100000 * 0.075 + 200000 * 0.05 + 200000 * 0.03 + 400000 * 0.015 + (p - 1000000) * 0.01
    return bonus


val = float(input())
b = calculate_bonus(val)
print('{:.2f}'.format(b))
